package com.xcity.pomelo.response;

import com.xcity.game.formation.Formation;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class CombatFormationResponse extends Response {
	
	private byte type;
	private long[] ids;
	
	public CombatFormationResponse(int serial, byte type, long[] ids) {
		super(serial);
		this.type = type;
		this.ids = ids != null ? ids : Formation.EMPTY_FORMATION;
	}
	
	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public long[] getIds() {
		return ids;
	}

	public void setIds(long[] ids) {
		this.ids = ids;
	}

}
